package com.twu.biblioteca.menuoption;

/**
 * Created by mduemcke on 9/23/14.
 */
public abstract class MenuOptionAbstract {

    private String label;
    private char selector;

    public MenuOptionAbstract(String label, char selector) {
        this.label = label;
        this.selector = selector;
    }

    public void printOption() {
        System.out.format("(%s) %s\n", selector, label);
    }

    public boolean isSelectedOption(char c) {
        return c == selector;
    }

    public abstract void processOption();
}
